// package com.hoperun.nocserver.modules.example;
//
// import java.util.UUID;
//
// import org.springframework.amqp.rabbit.core.RabbitTemplate;
// import org.springframework.amqp.rabbit.support.CorrelationData;
// import org.springframework.scheduling.annotation.Scheduled;
// import org.springframework.stereotype.Component;
//
// import com.hoperun.nocserver.common.conf.RabbitMQConfig;
//
// @Component
// public class TestRabbitmqSend2 {
//
// private RabbitTemplate rabbitTemplate;
//
// public TestRabbitmqSend2(RabbitTemplate rabbitTemplate) {
// this.rabbitTemplate = rabbitTemplate;
// }
//
// @Scheduled(fixedDelay = 5000)
// public void run() throws Exception {
// Thread.sleep(5000);
// String queue1 = "hello.1";
// String queue2 = "hello.2";
// String queue3 = "hello.3";
// String queue4 = "hello.4";
// rabbitTemplate.convertAndSend(RabbitMQConfig.EXCHANGE, queue1, queue1,
// new CorrelationData(UUID.randomUUID().toString()));
// rabbitTemplate.convertAndSend(RabbitMQConfig.EXCHANGE, queue2, queue2,
// new CorrelationData(UUID.randomUUID().toString()));
// rabbitTemplate.convertAndSend(RabbitMQConfig.EXCHANGE, queue3, queue3,
// new CorrelationData(UUID.randomUUID().toString()));
// rabbitTemplate.convertAndSend(RabbitMQConfig.EXCHANGE, queue4, queue4,
// new CorrelationData(UUID.randomUUID().toString()));
// }
//
// }
